namespace OFX.Aggregator.Infrastructure
{
	using System;

	[Serializable]
	public class RetrievalFailedException : Exception
	{
		private readonly IStatementRetrieval retrieval;

		public RetrievalFailedException(IStatementRetrieval retrieval, string message)
			: base(message) { this.retrieval = retrieval; }

		public RetrievalFailedException(IStatementRetrieval retrieval, string message, Exception innerException)
			: base(message, innerException) { this.retrieval = retrieval; }

		public IStatementRetrieval Retrieval
		{
			get { return this.retrieval; }
		}
	}
}